<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict/dtd">
<html>
	<head>
		<title>New Document</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta name="Author" content="CH">
		<meta name="Keywords" content="">
		<meta name="Description" content="">
		<script language="javascript" src="js/jquery/jquery.js"
			type="text/javascript"></script>
		<script language="javascript" src="js/basic.js" type="text/javascript"></script>
		<script language="javascript" src="dragresize.js"
			type="text/javascript"></script>
		<script language="javascript" src="js/EventAdapter.js" type="text/javascript"></script>
		<script language="javascript" src="js/core/baseMenu.js"></script>
		<script language="javascript" src="js/menu.js" type="text/javascript"></script>
		<link href="noteBookMenu.css" rel="stylesheet" type="text/css" />
		<script language="javascript" src="js/core/basePanel.js"
			type="text/javascript"></script>
		<link href="index.css" rel="stylesheet" type="text/css" />
		<link href="basePanel.css" rel="stylesheet" type="text/css" />
		<link href="dragresize.css" rel="stylesheet" type="text/css" />
	</head>

	<body>

		<script language="javascript">

	var dragresize = new DragResize('dragresize', {
		minWidth :300,
		minHeight :30,
		minLeft :0,
		minTop :0,
		maxLeft :2000,
		maxTop :2000
	});

	dragresize.isElement = function(elm) {
		if (elm.className && elm.className.indexOf('drsElement') > -1)
			return true;
	};
	dragresize.isHandle = function(elm) {
		if (elm.className && elm.className.indexOf('drsMoveHandle') > -1)
			return true;
	};

	//定义全局变量
	var panel1,panel2;

	$(document).ready( function() {
		
		panel1 = new NoteBookPanel({
				id:'noteBook1',                    
				titleText:'无标题-记事本1',    
				titleImg:'image/txt_editor_16x16.png',
				left:50,
				top:150,
				width: 500,
				height: 400   
			});
		panel1.init();
		
		panel2 = new NoteBookPanel({
				id:'noteBook2',                    
				titleText:'无标题-记事本2',    
				titleImg:'image/txt_editor_16x16.png',
				left:500,
				top:150,
				width: 500,
				height: 400    
			});
		panel2.init();
		
		dragresize.apply(document.body);
	})
</script>

	</body>
</html>